/**
 * @description: 异常返回基类
 * @author: yuanjianpeng5
 * @createdate: 2020-01-10 11:34
 * @lastdate:
 */

package expedia.exception;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.List;

@Data
public class BaseErrorResponseBean {

    //错误类型
    @JSONField(name = "type")
    private String type;

    //错误的详细信息
    @JSONField(name = "message")
    private String message;

    //一系列所有实际错误
    @JSONField(name = "errors")
    private List<ErrorsBean> errors;

    //有关包含错误的特定字段的详细信息
    @JSONField(name = "fields")
    private List<FieldsBean> fields;
}